#! /bin/bash

# 15:34 2023/6/27
#
# Note:
#      define DEBUG_ISA
#      udef ENABLE_UART

gcc -std=c99 -DDEBUG_ISA xemu.c -lcurses -lpthread -o ./xemu

./xemu ./rv32im/rv32ui-p-add.bin
./xemu ./rv32im/rv32ui-p-addi.bin
./xemu ./rv32im/rv32ui-p-and.bin
./xemu ./rv32im/rv32ui-p-andi.bin
./xemu ./rv32im/rv32ui-p-auipc.bin
./xemu ./rv32im/rv32ui-p-beq.bin
./xemu ./rv32im/rv32ui-p-bge.bin
./xemu ./rv32im/rv32ui-p-bgeu.bin
./xemu ./rv32im/rv32ui-p-blt.bin
./xemu ./rv32im/rv32ui-p-bltu.bin
./xemu ./rv32im/rv32ui-p-bne.bin
./xemu ./rv32im/rv32ui-p-jal.bin
./xemu ./rv32im/rv32ui-p-jalr.bin
./xemu ./rv32im/rv32ui-p-lb.bin
./xemu ./rv32im/rv32ui-p-lbu.bin
./xemu ./rv32im/rv32ui-p-lh.bin
./xemu ./rv32im/rv32ui-p-lhu.bin
./xemu ./rv32im/rv32ui-p-lui.bin
./xemu ./rv32im/rv32ui-p-lw.bin
./xemu ./rv32im/rv32ui-p-or.bin
./xemu ./rv32im/rv32ui-p-ori.bin
./xemu ./rv32im/rv32ui-p-sb.bin
./xemu ./rv32im/rv32ui-p-sh.bin
./xemu ./rv32im/rv32ui-p-sll.bin
./xemu ./rv32im/rv32ui-p-slli.bin
./xemu ./rv32im/rv32ui-p-slt.bin
./xemu ./rv32im/rv32ui-p-slti.bin
./xemu ./rv32im/rv32ui-p-sltiu.bin
./xemu ./rv32im/rv32ui-p-sltu.bin
./xemu ./rv32im/rv32ui-p-sra.bin
./xemu ./rv32im/rv32ui-p-srai.bin
./xemu ./rv32im/rv32ui-p-srl.bin
./xemu ./rv32im/rv32ui-p-srli.bin
./xemu ./rv32im/rv32ui-p-sub.bin
./xemu ./rv32im/rv32ui-p-sw.bin
./xemu ./rv32im/rv32ui-p-xor.bin
./xemu ./rv32im/rv32ui-p-xori.bin
./xemu ./rv32im/rv32um-p-div.bin
./xemu ./rv32im/rv32um-p-divu.bin
./xemu ./rv32im/rv32um-p-mul.bin
./xemu ./rv32im/rv32um-p-mulh.bin
./xemu ./rv32im/rv32um-p-mulhsu.bin
./xemu ./rv32im/rv32um-p-mulhu.bin
./xemu ./rv32im/rv32um-p-rem.bin
./xemu ./rv32im/rv32um-p-remu.bin
